<?php
$unuse = $this->unuse;
$uses = $this->uses;

?>
<script type="text/javascript"">
		function changetieuchi(){
			var domselect=document.getElementById('Select');
			var hoten=document.getElementById('ten');
			var diachi=document.getElementById('dia');
			var email=document.getElementById('ema');
			var choose=domselect.value;
				var form=document.getElementById('myForm');
				if(choose==1) 
				{
					hoten.style.opacity=1;
					diachi.style.opacity=1;
					email.style.opacity=1;
					form.action='searchnangcao';
					}
				else if(choose==2)
				{
					hoten.style.opacity=1;
					diachi.style.opacity=0.5;
					email.style.opacity=0.5;
					form.action='searchbyname';
					}
}
	
</script>


<div class="center_title_bar">Quản Lý Tài Khoản</div>
<div class="prod_box_big">
<div class="top_prod_box_big"></div>
<div class="center_prod_box_big">


<form id="myForm" action="searchnangcao" method="get">
<div id="content">
<center>

<div class="search" id="account">


<h3>TÌM KIẾM QUẢN LÝ-THỐNG KÊ</h3>
<table style="width: 400px" id="myTable">
	<thead>
		<tr>
			<td colspan="2" align="center">T&igrave;m Ki&#7871;m</td>
		</tr>
	</thead>
	<tr class="tr1">
		<td colspan="3" align="left"><span
			style="font-size: small; font-style: italic"> Tiêu Chí Tìm Kiếm </span>
		<select name="menu" id="Select" size="1" onchange="changetieuchi()">
			<option value="1">Tim Theo Nhiều Tiêu Chí</option>

			<option value="2">Tìm Kiếm Theo Tên</option>
			
		</select></td>
	</tr>
	<tr>
		<td width="32%">Họ tên</td>
		<td width="68%"><input  id="ten" type="text" id="hoten" name="ten"
			size="" /></td>
	</tr>
	<tr>
		<td>Địa chỉ</td>
		<td><input type="text" id="dia" name="diachi" size="" /></td>
	</tr>
	<tr>
		<td>email</td>
		<td><input type="text" id="ema" name="email" size="" /></td>
	</tr>
	<tr>
		<td></td>
		<td align="right"><input id="search" type="submit" name="Submit"
			value="Search" /></td>
	</tr>
</table>
</div>
<table border="1" id="myTable" style="width: 400px">

	<thead>
		<tr>
			<td colspan="3">Thống Kê</td>
		</tr>
	</thead>
	<tr class="tr1">
		<td>Ngày Thống Kê</td>
		<td>Nội Dung</td>
		<td>Số Lượng</td>
	</tr>
	<tr class="tr2">
		<td rowspan="2"><?php
		echo date ( 'd-m-y' )?></td>
		<td>Số Tài Khoản <span style="color: blue"> Đã</span> Được Kích Hoạt</td>
		<td><?php
		echo count ( $uses )?></td>
	</tr>
	<tr>

		<td>Số Tài Khoản <span style="color: blue"> Chưa </span> Được Kích
		Hoạt</td>
		<td><?php
		echo count ( $unuse )?></td>

	</tr>
</table>
</center>

</div>

</form>
</div>
<div class="bottom_prod_box_big"></div>
</div>